// 1
$(function () {
    $(".zhiweifabu01 em").click(function () {
        $("#bg").css({
            display: "block", height: $(document).height()
        });
        var $box = $('.payment_time_mask01');
        $box.css({
            display: "block",
        });
        $(".zhaopin_zpzw_em1").css("color","#04a6e9");
        $(".zhiweifabu01 i").addClass("up");
    });
    //点击关闭按钮的时候，遮罩层关闭
    $(".payment_time_mask01 li").on('click',function () {
        $("#bg,.payment_time_mask01").css("display", "none");
        $(".zhiweifabu01 em").text($(this).html());
        $(".zhaopin_zpzw_em1").css("color","#04a6e9");
        $(".zhiweifabu01 i").removeClass("up").addClass("down");
    });
});
// 关闭
$(".pay_ttl span").on('click',function () {
        $("#bg,.payment_time_mask").css("display", "none");
    });
// 2
$(function () {
    $(".zhiweifabu02 em").click(function () {
        $("#bg").css({
            display: "block", height: $(document).height()
        });
        var $box = $('.payment_time_mask02');
        $box.css({
            display: "block",
        });
        $(".zhaopin_zpzw_em2").css("color","#04a6e9");
        $(".zhiweifabu02 i").addClass("up");
    });
    //点击关闭按钮的时候，遮罩层关闭
    $(".payment_time_mask02 li").on('click',function () {
        $("#bg,.payment_time_mask02").css("display", "none");
        $(".zhiweifabu02 em").text($(this).html());
        $(".zhaopin_zpzw_em2").css("color","#04a6e9");
        $(".zhiweifabu02 i").removeClass("up").addClass("down");
    });
});
// 3
$(function () {
    $(".zhiweifabu03 em").click(function () {
        $("#bg").css({
            display: "block", height: $(document).height()
        });
        var $box = $('.payment_time_mask03');
        $box.css({
            display: "block",
        });
        $(".zhaopin_zpzw_em3").css("color","#04a6e9");
        $(".zhiweifabu03 i").addClass("up");
    });
    //点击关闭按钮的时候，遮罩层关闭
    $(".payment_time_mask03 li").on('click',function () {
        $("#bg,.payment_time_mask03").css("display", "none");
        $(".zhiweifabu03 em").text($(this).html());
        $(".zhaopin_zpzw_em3").css("color","#04a6e9");
        $(".zhiweifabu03 i").removeClass("up").addClass("down");
    });
});
// 4
$(function () {
    $(".zhiweifabu04 em").click(function () {
        $("#bg").css({
            display: "block", height: $(document).height()
        });
        var $box = $('.payment_time_mask04');
        $box.css({
            display: "block",
        });
    });
    //点击关闭按钮的时候，遮罩层关闭
    $(".payment_time_mask04 li").on('click',function () {
        $("#bg,.payment_time_mask04").css("display", "none");
        $(".zhiweifabu04 em").text($(this).html());
    });
});
// 5
$(function () {
    $(".zhiweifabu05 em").click(function () {
        $("#bg").css({
            display: "block", height: $(document).height()
        });
        var $box = $('.payment_time_mask05');
        $box.css({
            display: "block",
        });
    });
    //点击关闭按钮的时候，遮罩层关闭
    $(".payment_time_mask05 li").on('click',function () {
        $("#bg,.payment_time_mask05").css("display", "none");
        $(".zhiweifabu05 em").text($(this).html());
    });
});

// 纬线01
$(function () {
    $(".zhiwei01 em").click(function () {
        $("#bg").css({
            display: "block", height: $(document).height()
        });
        var $box = $('.payment_time_wei01');
        $box.css({
            display: "block",
        });
    });
    //点击关闭按钮的时候，遮罩层关闭
    $(".payment_time_wei01 li").on('click',function () {
        $("#bg,.payment_time_wei01").css("display", "none");
        $(".zhiwei01 em").text($(this).html());
    });
});
// 纬线02
$(function () {
    $(".zhiwei02 em").click(function () {
        $("#bg").css({
            display: "block", height: $(document).height()
        });
        var $box = $('.payment_time_wei02');
        $box.css({
            display: "block",
        });
    });
    //点击关闭按钮的时候，遮罩层关闭
    $(".payment_time_wei02 li").on('click',function () {
        $("#bg,.payment_time_wei02").css("display", "none");
        $(".zhiwei02 em").text($(this).html());
    });
});
// 纬线03
$(function () {
    $(".zhiwei03 em").click(function () {
        $("#bg").css({
            display: "block", height: $(document).height()
        });
        var $box = $('.payment_time_wei03');
        $box.css({
            display: "block",
        });
    });
    //点击关闭按钮的时候，遮罩层关闭
    $(".payment_time_wei03 li").on('click',function () {
        $("#bg,.payment_time_wei03").css("display", "none");
        $(".zhiwei03 em").text($(this).html());
    });
});
// 纬线01
$(function () {
    $(".zhiwei04 em").click(function () {
        $("#bg").css({
            display: "block", height: $(document).height()
        });
        var $box = $('.payment_time_wei04');
        $box.css({
            display: "block",
        });
    });
    //点击关闭按钮的时候，遮罩层关闭
    $(".payment_time_wei04 li").on('click',function () {
        $("#bg,.payment_time_wei04").css("display", "none");
        $(".zhiwei04 em").text($(this).html());
    });
});
// 纬线01
$(function () {
    $(".zhiwei05 em").click(function () {
        $("#bg").css({
            display: "block", height: $(document).height()
        });
        var $box = $('.payment_time_wei05');
        $box.css({
            display: "block",
        });
    });
    //点击关闭按钮的时候，遮罩层关闭
    $(".payment_time_wei05 li").on('click',function () {
        $("#bg,.payment_time_wei05").css("display", "none");
        $(".zhiwei05 em").text($(this).html());
    });
});